import os
import sys
import subprocess


def main(args: list):
    if not args:
        print("* Filepath required")
        return

    if not os.path.exists(args[0]):
        print("* Invalid filepath")
        return

    subprocess.Popen(
        ["exiftool", "-all=", args[0]],
        stdout=subprocess.PIPE,
        stderr=subprocess.PIPE,
    )


if __name__ == "__main__":
    main(sys.argv[1:])
